echo y | sudo apt -y install piper
echo y | sudo apt install build-essential cmake pkg-config libevdev-dev libudev-dev libconfig++-dev libglib2.0-dev
if [[ ! -d ${HOME}/temp/github ]]
then
  mkdir -p ${HOME}/temp/github
fi

if [[ -d ${HOME}/temp/github/logiops ]]
then
  rm -rf ${HOME}/temp/github/logiops
fi
git clone https://github.com/PixlOne/logiops.git ${HOME}/temp/github/logiops 
mkdir -p ${HOME}/temp/github/logiops/build
cd ${HOME}/temp/github/logiops/build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
sudo systemctl enable logid



# -- Install configuration: "Release"
# -- Installing: /usr/bin/logid
# -- Installing: /lib/systemd/system/logid.service
# -- Installing: /usr/share/dbus-1/system.d/pizza.pixl.LogiOps.conf
#
#
# README
#
# piper : configuration of button
# logid : connect to computer
